package com.wanxi.dao.impl;//package com.wanxi.dao.impl;
//
//import com.wanxi.dao.BaseDao;
//import com.wanxi.dao.NewsDao;
//import com.wanxi.model.MessageModel;
//import com.wanxi.model.NewsModel;
//import com.wanxi.model.NewsTime;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.support.ClassPathXmlApplicationContext;
//
//import java.util.List;
//
//public class Test {
//    public static void main(String[] args) {
//        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("beans.xml");
//        BaseDao newsImpl = (BaseDao) applicationContext.getBean("newsImpl");
//        NewsModel newsModel = new NewsModel();
//        newsModel.setId(25);
//
//
//        newsImpl.enable(newsModel);
//        newsImpl.count(newsModel);
//        newsImpl.isShow(newsModel);
//        newsImpl.isRecommend(newsModel);
////        newsImpl.add(newsModel);
////        newsImpl.update(newsModel);
////        newsImpl.delete(newsModel);
////        newsImpl.findAll(ListnewsModel);
////        newsImpl.findById(newsModel);
//
//    }
//}
